﻿package com.txby.alipay;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 支付宝基本信息配置
* @ClassName: AlipayConfig 
* @Description: TODO(这里用一句话描述这个类的作用) 
* @author jacking
* @date 2017年10月30日 下午3:33:16 
 */
@Data
@NoArgsConstructor
public class AlipayConfig {
	/**
	 *  APPID
	 */
	@Getter@Setter
//	public static   String app_id = "2016080800193198";
	public static   String app_id = "2017111309908295";
	/**
	 * 私钥 
	 */
	@Getter@Setter
	public static   String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDCDsISX2QyY7Jq" + 
			"AJxnHFitvJFRUnBvIq4+O3MoGA9iPY06XkIn8dKwkXPW4NX5hJvTfGV3LZWQVs6s" + 
			"K2UcEN2GZjyW956QBGM8v3+EI9dNeJXZp+ufIlwX1KP6pVJhLURp0ZC3e8G2+rYZ" + 
			"voBL+zHjz5WPK4BQA0R/G4V879WA5vT6Y/Hy3uFbCFfW8pTzCKacwTgxOmALrvlW" + 
			"IuDEXk7HuuTTTmTzUK8PJtqiVsAwWgNoijrDMgzU4rwjQ0IPxw9PYwcWXbLXwdp/" + 
			"DcPXX7AUKHxyT4KVG8/9HnXmojzrbWrgtQuvBV6ZVsx9+/+8hku2p4L/jFxKhR9Y" + 
			"YA0ZrAcJAgMBAAECggEAKkTSqvPSPFOQ8hvt9VusSTOQp5kAWoTAVVfXrn0HJMvp" + 
			"bjRHzrGSxdj41W4lzXLACmHHLB1mvYja/Y96N5HI3tR4EB4hkJcUEpBXsy2nYP2K" + 
			"Dl3QKdpvGtW7XgYSmo4kn7QBBKZVPIkBjzv6cBJn/IojtoqwKT189v7EpcELzUaf" + 
			"VIq/cKMQHrji35w1OXCju+tr9xug3TbLizO/XCKGVcCxJWzTrJ/wKTY9XkHCIIHH" + 
			"cfS2C/129jssIwdEGiSKqvYnMG813bXaeyBUspM/2xYgBO0AdJHeZnazFrHibww2" + 
			"iZCJr+qP6XVbhNTL4iH797+up/f1qoplpWhM10BHAQKBgQD+bnom0VYtcLqdTxWZ" + 
			"tYcIJaRuSBqHv6TAVf38lvy69/jrsxhafYjPChGYU57+j6egrO4xKc/hFsb2IlIK" + 
			"JZyJbGgzT2nsWBmmyGRLMGN0hJa/XyK5t+fRxkka7Gd1gtHQnjG+h6O0vEkGHbxe" + 
			"ZR+cz6/OqtNY8n3H4JldaKhL6QKBgQDDQQD7VEbR1QQ6B1UsoqKvZwFjcoUUaawO" + 
			"9vBj2P0ItvkjZJLqmiggs/+stza34pYEDIpWTk4M5wxTfrhijZmbLrvgzeKkv9P0" + 
			"yRCp3QUMVgVs5L6vMOkfFIr5t6AQlAyJdc0cZw8HfmDX0mOp5Z2hJuyvnucAQBYd" + 
			"kHQZKoeOIQKBgQDu8/cI6eXTu2GoSBPzTkdJYYDyiglQoK4sbRai2XL2bdl8E7G1" + 
			"mtyYBc7Mjwxt66D1CDSUO76emXO2yjjeisBfWE7skZLbg0pkFyQKcaGWVsf1Z3YH" + 
			"ki7IFz+lZ40rEffXxBrX5C/dmE/EzLySsspjzbJBmLHxgZyb0dZ3ockdsQKBgGVu" + 
			"2ZG3QGs1nFKBCLB9dMJmYoRFM/lcxDOp+UwFp73lQBww3Vne58XFfKc/Lr/siD5m" + 
			"PV+Eomt1hCPECwm3wfqqFpQ8oOcxeG0MHwn/deXosjzVwHHGmPS6eVAtIow6PSET" + 
			"/5AnwdkEwE6eT4QtcuwLCp5ZkGvC3zpQlt+UBoPBAoGAP53sgoiCurosLdhEcqp4" + 
			"hW4Q5H7bepZkMzpCUTqyk75Y2YVije2aEONGQJCziufjcilOXjO236ofFj5UxAJb" + 
			"hluOwQI3BijosrWdy0pZpnPmvobm9YFiVQuwBCU8lGqkHB825vN1Y1JhQGmQDsB0" + 
			"Z9bPpmtIY8VGDY2B6BoM63Y=";
 
	
/*	public static   String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCYdDtpbheuhFGv" + 
			"IYjU86gBfPua0ZKCENt61p+W2CeSPMZ6elKDZdLOVrHbyfZ0dRjpVXVJHau42yum" + 
			"4DvGQji5x6UndOsFlxvLf7qMl8GyODPwcRXKb446BnemHxs9jv5rKBqA2m3ZGxla" + 
			"qMeaj2Lz4uu19zNHVVbSqvQssELH9x1k6OLONvx5d4tiQEfK1eyOvkT1XQZiVipN" + 
			"3SU5JygP+T/OUykUyuZkhYiQTPlRvrzIdrnaOg9a4Cschx77r4cvRyg+MstoDFlR" + 
			"4xABJ2pYD0psH3ud5kjePWH4I80KCVBeBZzMR7s19/77xZc2VanzwP+4Q7rEVSZZ" + 
			"S1aJB32DAgMBAAECggEAFz5hcImggrMZ4SGzwwQDMXbkxY3+UGZRkED4w/7gyaMK" + 
			"f9H2kqILqfn91AzOzqKr0ad94k/rxptj5GV7t5aRH4IY5BMnYgrP6g7nWlgo6As5" + 
			"oAcd02d+v8oMo/9KH/CVSbErmUm0Rc2j5/ajuCT0aUrHtU6jOtUAD86Qu9+DzwjZ" + 
			"6eEHqbAvVfFJ95Um1QK+cqf9taD8kmYczz56fCkVP1u8C9NPwbeTu1CoOCK3Od3p" + 
			"0IhDfIrPWykETUm7BBqfNV1SzDDYO8vSl2MILdifThVAmyVQvXgD+uYoC7E0WXm0" + 
			"xTRsfUhNJoG16YNv/I+GZXPaodUCWOCs3r0N6MW3QQKBgQDJaBXAynETGl5C8OMx" + 
			"KOjqsYu9Xb1CvpQ0DTg1kOJjsnehEsr/Zv03oMBSPoeGfviqXn7KEILnySIxpIGS" + 
			"YuJznz/ko8KfgkwzbP/I91mWhh/E4GztqSJ4coKCdnmIOLVNkCBbELnk5XKPyXEe" + 
			"KFeR8kesIl6QPIkDrfwNqql67wKBgQDBx0D0PPZBwkkKufGF31/nSQxloRX41/Rn" + 
			"QWFA9dvKF8sdaVuYBpHmB+kx/q+IoxckshAE+yfI7Y5vxsc7fJOaBPJahTvK1KJ4" + 
			"NRbwhWBzHDiFvY6WFVW2HFqrZfaDrEeNl8Ejw6E/FOfoqFrJz32158u4SDkYI0mh" + 
			"jpDBCH82rQKBgH1pw8nmBV042SNj7oTJDag+4F4NhfGOzKhQ5wRr8JzWH6n8Es3Q" + 
			"6rJ99eQArdFxNRSZfOgEOg9s7k7tOgXWb15B9r4/vswmjZ6kK+6PH4kcgaHNgebH" + 
			"oABShbQJZAoQDc17hrpOAwNmYNzqOfbmdgkaTckBKdM07riM2VwFPj2fAoGAWVYJ" + 
			"RhCM34g4sG9FQBjZWAG/a2M2hADbtnbX5WDzsVoC1E5sYcw1mz1ubxQhzPaThuFo" + 
			"rUM09lc+4Z1c4LnwOoOpT7448KvTM2QWbVCwRKFwFYhsohi36TttObPKUK4uVsLt" + 
			"0hUw06pJuGNVZ9D2/dQdgZoaaFxsZ8UYS0YlkAkCgYEAoXLf/QDnCoXyAKlehHOC" + 
			"98dHy715X3bU4E1fBuqpZVvyZ85VmRbgXSwcfnD9m0dkDiDk+srAr+xzeGIRv8oJ" + 
			"kw1LhDunine8gu5G3yj1s+ZNNlHvMooWJmRuhMCUD9QnzEJnEWMf13ImPg1HooBI" + 
			"ifEyeQQ6B1vE3avwk9Mbzko=";*/
	/**
	 * 支付宝公钥
	 */
	@Getter@Setter
//	public static   String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzuzRxFy8TkAlbavAkl2pSTcqi1cTaEYKRVWGbEVCaNN2UvIFzlvO2iNK2WP0UpWAjJ5wZFWwi0MgiyLkunkgH/zgH3uai1RGs+FaS3oMwopjXo2XwOyOIn/kDxI/8pBJYWs1QBry9TpfzE4leYnbi0Uxmt5em2Z9qiGvpxMFfJOrPuAnh8vBkmZk5y5j6QG1pm5ObFfgkK/xPhBGhE1I/WmPg93W7iH/tpkxpnYdpEjoemepDX2ix+/XcdVpGQbqOGXdNmFXcY6Vsw3q/LsmguOS6MHm+/oDyePgtUs5FADpEmVUELoWW0WL/BVIej0zEjS7VJqn4uE93RYTFBwizwIDAQAB";
	public static   String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAggi9kx0b0zpGQ6yP7c4M3a49yUouZ4Z+8gzRvljT2IO9CylX+0VWTU9Mbmcm5WSbvYPki2fRI/crWsnX5QxV3y05q5dW6XhYR2QWwc7gsOsLxFcWpLwJLQtrpqYPKMS7siasQ26W8cpEbKN+0FYlZi0Xw+I3uL87+s6fYZwhye5kQfKsyGw/gHmmEzmstEFdU7pzEJ4w5Zl9SnW35piYCbLaQ+S2RKzaw0UX7hfdpJPO9RUsgahoBM3stZgyxayjGcismGC3ss+TVLrGHhkedKTIRKAbCkLm16RbeAHMqSOJqBwbEyUM0EyiD9pT/uBmfS0gTnGpOjLepDlH6Wp6ZwIDAQAB";
	/**
	 * 网关地址
	 */
	@Getter@Setter
	public static   String gatewayUrl = "https://openapi.alipay.com/gateway.do";
//	public static   String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";
	
	/**
	 * 支付宝的异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问，对应的参数为notify_url，支付宝通知使用POST方式
	 */
	@Getter@Setter
	public static String notify_url = "http://jiaojing.in.8866.org:10128/shop/orders/alipayNotifyUrl";

	/**
	 * 页面跳转支付宝的同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问，对应的参数为return_url，支付宝通知使用GET方式 
	 */
	@Getter@Setter
	public static String return_url = "http://工程公网访问地址/alipay.trade.page.pay-JAVA-UTF-8/return_url.jsp";

	/**
	 * 签名方式
	 */
	@Getter@Setter
	public static String sign_type = "RSA2";
	
	/**
	 * 字符编码格式
	 */
	public static String charset = "utf-8";

	/**
	 * 格式
	 */
	public static String format = "json";
   /**
    * 
   * <p>Title: </p> 
   * <p>Description: </p> 
   * @param app_id
   * @param merchant_private_key
   * @param alipay_public_key
   * @param gatewayUrl
   * @param notify_url
   * @param return_url
    */
   public AlipayConfig(String app_id,String merchant_private_key,String alipay_public_key,String gatewayUrl,String notify_url,String return_url ) {
	   this.app_id=null!=app_id?app_id:this.app_id;
	   this.merchant_private_key=null!=merchant_private_key?app_id:this.merchant_private_key;
	   this.alipay_public_key=null!=alipay_public_key?alipay_public_key:this.alipay_public_key;
	   this.gatewayUrl=null!=gatewayUrl?gatewayUrl:this.gatewayUrl;
	   this.notify_url=null!=notify_url?notify_url:this.notify_url;
	   this.return_url=null!=return_url?return_url:this.return_url;
   }
 
	

}

